/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package qpapplets;

import com.quantprinciple.applet.dataanalysis.TableToChartTabbedPane;
import javax.swing.JFrame;
import javax.swing.table.DefaultTableModel;
import javax.swing.table.TableModel;

/**
 *
 * @author bryce
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
	    JFrame fram = new JFrame();
	    TableToChartTabbedPane ttcp = new TableToChartTabbedPane();
	    ttcp.setDataViewTab(getTestingTableModel());
	    ttcp.setChartView();
	    ttcp.updateChartView();
	    fram.add(ttcp.getTabbedPane());
	    fram.setVisible(true);

	    
    }
    private static TableModel getTestingTableModel(){
	    Object[][] data = new Object[][] 
	    {{"2010-03-11",1,2,3,4},
	     {"2010-03-12",5,5,5,5},
	     {"2010-03-13",6,6,6,6}};
	    Object[] names = new Object[] {"time","volume","avgResponse"};
	    TableModel tm = new DefaultTableModel(data,names);
	    return tm;
    }

}
